package com.se.nju.rtvps.service;

import net.jxta.document.Advertisement;
import net.jxta.exception.PeerGroupException;
import net.jxta.id.ID;
import net.jxta.peergroup.PeerGroup;
import net.jxta.platform.Module;
import net.jxta.service.Service;

public class TransferManagementService implements net.jxta.service.Service{
	private Advertisement implAdv;

	public Advertisement getImplAdvertisement() {
		return implAdv;
	}

	public Service getInterface() {
		return this;
	}

	public void init(PeerGroup group, ID assignedID, Advertisement implAdv) throws PeerGroupException {
		this.implAdv = implAdv;
		System.out.println("Init TransferManagement Service");
	}

	public int startApp(String[] args) {
		System.out.println("Start TransferManagement Service");
		return Module.START_OK;
	}

	public void stopApp() {
		System.out.println("Stop TransferManagement Service");
	}
}
